import axios from 'axios'

export function request(config) {
    const instance1 = axios.create({
        baseURL: "http://101.33.224.93:8000",
        // baseURL:"http://127.0.0.1:8000/",
        timeout: 10000,
    })
    instance1.interceptors.request.use(config => {
        return config
    }, error => {
        console.log(error)
    })//请求拦截
    instance1.interceptors.response.use(res => {
        return res.data
    }, error => {
        console.log(error)
    })//响应拦截
    return instance1(config)
}